// 封装用户相关的接口
import axios from "@/utils/request"

// 上传文件接口 /upload post file
export const upload = data => axios({
    url: "/upload",
    method: "post",
    data,
    headers: {
        Authorization: localStorage.getItem("token")
    }
})

// 封装栏目列表接口
export function category() {
    return axios({
        url: "/category",
        method: "get",
        headers: {
            Authorization: localStorage.getItem("token")
        }
    })
}